<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // window.alert(1)
        // window.confirm("去不去")
        var value = window.confirm("去不去")
        console.log(value)  // true false
        // 输入型弹窗
        var temp = window.prompt("请输入","hello world")
        console.log(temp);
    </script>
</body>
</html>